PressKeyCallback

This callback is invoked when a KeyPressed event is about to be processed by the browser.

Return the proceed response to allow the browser to process the event.

Return the suppress response to suppress the event.

Important: the engine will be blocked until you return a response from the callback.

Types

Link copied to clipboard
interface Params
The parameters of the PressKeyCallback.
Link copied to clipboard
interface Response
A response of the PressKeyCallback.

Functions

Link copied to clipboard
abstract fun on(params: P): R
Invoked when the callback needs a response of type R that may be determined based on the provided callback parameters.